-- GENERATED SPELL FOR [Galak Wrangler] --


function spell0_4093(pUnit, Event) --@Net,n/a--
pUnit:FullCastSpellOnTarget(6533,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4093', 2292, 1)
end

function spell1_4093(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4093', 583, 1)
end

function Sorts_4093(pUnit, Event)
local choix_sorts_4093 = math.random(0, 1)
if choix_sorts_4093 == 0 then
pUnit:RegisterEvent('spell0_4093', 1, 1)
end
if choix_sorts_4093 == 1 then
pUnit:RegisterEvent('spell1_4093', 1, 1)
end
end

function mob4093_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4093', math.random(1500, 3000), 1)
end

function mob4093_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4093_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4093_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4093, 1, 'mob4093_Action')
RegisterUnitEvent(4093, 2, 'mob4093_Leave')
RegisterUnitEvent(4093, 3, 'mob4093_Kill')
RegisterUnitEvent(4093, 4, 'mob4093_Die')
